package com.eastfair.home.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.home.dto.BoothAcceptanceDetailDTO;
import com.eastfair.home.entity.BoothAcceptanceDetail;
import com.eastfair.home.vo.BoothAcceptanceDetailVO;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 展台验收记录明细
 * </p>
 *
 * @author linan
 * @date 2022-11-29
 */
public interface BoothAcceptanceDetailService extends SuperService<BoothAcceptanceDetail> {
    /**
     * do转vo
     *
     * @param model
     */
    BoothAcceptanceDetailVO doToVo(BoothAcceptanceDetail model);

    /**
     * do转vo
     *
     * @param modelList
     */
    List<BoothAcceptanceDetailVO> doToVos(List<BoothAcceptanceDetail> modelList);


    /**
     * 通用查询
     *
     * @param modelDTO DTO
     * @param ids      主键id集合
     * @return list
     */
    List<BoothAcceptanceDetail> list(BoothAcceptanceDetailDTO modelDTO, List<Long> ids);

    /**
     * 通用查询
     *
     * @param modelDTO DTO
     * @param ids      主键id集合
     * @return list
     */
    List<BoothAcceptanceDetail> listOfCache(BoothAcceptanceDetailDTO modelDTO, List<Long> ids);

    /**
     *
     * @param acceptanceRecordId acceptanceRecordId
     * @return List
     */
    List<BoothAcceptanceDetailVO> getByAcceptanceRecordId(Long acceptanceRecordId);

    /**
     * 作废历史记录
     * @param acceptanceRecordId
     */
    void removeByRecordId(Long acceptanceRecordId);
}
